HEX
Server: LiteSpeed
System: Linux eticaretsrv4.isimtescil.net 3.10.0-962.3.2.lve1.5.26.7.el7.x86_64 #1 SMP Wed Oct 2 07:53:12 EDT 2019 x86_64
User: sioberen (1086)
PHP: 7.3.33
Disabled: NONE
Upload Files
File: //home/sioberen/public_html/wp-content/themes/colibri-wp/inc/src/Components/InnerHeader/Hero.php
<?php


namespace ColibriWP\Theme\Components\InnerHeader;

use ColibriWP\Theme\Components\FrontHeader\Hero as FrontHero;
use ColibriWP\Theme\View;

class Hero extends FrontHero {
    protected static $settings_prefix = "header_post.hero.";

    protected static function getOptions( $include_content_settings = true ) {
        $options = parent::getOptions( false );

        return $options;
    }

    public function printPostFeaturedImage() {
        $bgImage = '';
        if ( apply_filters( 'colibriwp_override_with_thumbnail_image', false ) ) {
            global $post;
            if ( $post ) {
                $thumbnail = get_the_post_thumbnail_url( $post->ID, 'mesmerize-full-hd' );

                $thumbnail = apply_filters( 'colibriwp_overriden_thumbnail_image', $thumbnail );

                if ( $thumbnail ) {
                    $bgImage = $thumbnail;
                }
            }
        }

        if ( $bgImage ) {
            echo "background-image:url('$bgImage')";
        }
    }

    public function renderContent() {
        View::partial( "inner-header", "hero", array(
            "component" => $this,
        ) );
    }
}